package com.xinyue.center.common;

/**
 * @Author 王广帅
 * @Date 2020/12/26 21:20
 */
public class ServerResponse<T> {
    private int code;
    private T body;

    public ServerResponse(T body) {
        this.body = body;
    }

    public ServerResponse(int code, T body) {
        this.code = code;
        this.body = body;
    }

    public int getCode() {
        return code;
    }

    public T getBody() {
        return body;
    }
}
